package com.itany.corejava.code17_设计模式.工厂模式;

import com.itany.corejava.entity.User;

import java.util.Date;
import java.util.Scanner;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年12月19日 16:05
 */
public class Test {
    public static void main(String[] args) {
        // Address address= (Address) ObjectFactory.getObject("address");
        User user= (User) ObjectFactory.getObject("user");
        Date date= (Date) ObjectFactory.getObject("date");
        // System.out.println(address);
        System.out.println(user);
        System.out.println(date);


    }
}
